<%@ page import = "com.stand.hardcode.util.RequestAttributes,com.stand.hardcode.entity.StandUser" %>
<html>
<%
StandUser currentUser = (StandUser)request.getSession().getAttribute(RequestAttributes.CURRENT_USER);

%>
<h1>Welcome to STAND App</h1>

Hi, <%=currentUser.getName()%> <br />

<a href="/profile">Profile Page</a>
<a href="/logout">Log out</a>

<%
if(currentUser.isAdmin()){
%>
<a href="/adminpanel">Admin Panel</a>
<% } %>
</html>